gtk4.git
7 years agoFixed bug that prevented GTK from storing printer driver preferences in the print...
Rick Yorgason [Sat, 27 Oct 2018 13:00:20 +0000 (06:00 -0700)]
Fixed bug that prevented GTK from storing printer driver preferences in the print dialogue on Windows.

7 years agoMerge branch 'nirbheek/meson-fallback-dep-fixes' into 'master'
Timm Bäder [Wed, 24 Oct 2018 09:42:12 +0000 (09:42 +0000)]
Merge branch 'nirbheek/meson-fallback-dep-fixes' into 'master'

Misc meson fixes for using subproject dependencies

See merge request GNOME/gtk!232

7 years agoUpdate Esperanto translation
Kristjan SCHMIDT [Wed, 24 Oct 2018 08:14:41 +0000 (08:14 +0000)]
Update Esperanto translation

7 years agoAdwaita: prevent devel styling break selection mode
Jakub Steiner [Mon, 22 Oct 2018 08:31:20 +0000 (10:31 +0200)]
Adwaita: prevent devel styling break selection mode

- Selection mode does not get the special devel styling.

- removed teh last-child() selector for it doesn't work anymore.
  Better style all section of the headerbar than none. Proper fix pending.

https://source.puri.sm/Librem5/libhandy/issues/57

7 years agoquartz: do not cache the screen in the gdkmonitor
Ignacio Casal Quinteiro [Sun, 7 Oct 2018 19:51:35 +0000 (21:51 +0200)]
quartz: do not cache the screen in the gdkmonitor

Instead we just cache the monitor number and get
out of it the nsscreen when it is needed. This is
a requirement since it nsscreen it is not supposed
to be cached.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/1312
7 years agoMerge branch '1397-gtknotebook-built-in-popup-menu-listing-tabs-doesn-t-use-tab-label...
Matthias Clasen [Tue, 16 Oct 2018 20:49:42 +0000 (20:49 +0000)]
Merge branch '1397-gtknotebook-built-in-popup-menu-listing-tabs-doesn-t-use-tab-label-text-for-the-last-tab-4' into 'master'

Notebook: Ensure menu label updates with tab_label

Closes #1397

See merge request GNOME/gtk!386

7 years agoMerge branch 'lrn/zorder-gtk4' into 'master'
LRN [Mon, 15 Oct 2018 22:48:14 +0000 (22:48 +0000)]
Merge branch 'lrn/zorder-gtk4' into 'master'

Don't let the OS maintain relative Z-order for windows (GTK4)

See merge request GNOME/gtk!197

7 years agoNotebook: Ensure menu_label updates with tab_label
Daniel Boles [Fri, 12 Oct 2018 22:12:53 +0000 (23:12 +0100)]
Notebook: Ensure menu_label updates with tab_label

This was noticed in Firefox and demonstrated using a GtkBuilder ui file.
buildable_add_child() calls set_tab_label(), but the latter did nothing
to update the menu_label corresponding to that tab with the new text.
Using Builder to populate the tab child, only tabs other than last got
the right non-default labels, and even that was mostly coincidental, as
adding the main child called update_labels() via real_insert_page(), so
it took effect when the 2nd last main child is added, updating the rest
but leaving the last with the default label, not that given in Builder.

Fix by factoring out the code from child_reordered() to a new helper
menu_item_recreate() and calling that in set_tab_label(), so that
whenever the tab_label is updated, so is its corresponding menu_label.

This fixes the reported case and presumably others that we could write.

fixes https://gitlab.gnome.org/GNOME/gtk/issues/1397

7 years agoNotebook: Don't notify 2x from set_tab_label_text
Daniel Boles [Fri, 12 Oct 2018 22:40:16 +0000 (23:40 +0100)]
Notebook: Don't notify 2x from set_tab_label_text

It calls set_tab_label(), which already does that.

7 years agogtk-demo/main: Suppress implicit fallthru warning
Daniel Boles [Fri, 12 Oct 2018 21:09:42 +0000 (22:09 +0100)]
gtk-demo/main: Suppress implicit fallthru warning

Comments matched to reassure the compiler that fallthrough is
intentional are supposed to precede the case or default keywords, at
least in GCC, so the one here did not suppress the warning with GCC. We
can just the if condition and put the comment at the end to solve that.

https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/

7 years ago.gitignore: Ignore all subdirs in the subprojects dir
Nirbheek Chauhan [Fri, 12 Oct 2018 08:53:53 +0000 (14:23 +0530)]
.gitignore: Ignore all subdirs in the subprojects dir

7 years agomeson: Always fetch pangoft2_dep from the pango subproject
Nirbheek Chauhan [Mon, 23 Jul 2018 09:25:25 +0000 (14:55 +0530)]
meson: Always fetch pangoft2_dep from the pango subproject

This ensures that we will use pangoft2 if it is available, and not if
it is not available.

See: https://gitlab.gnome.org/GNOME/pango/merge_requests/6

7 years agomeson: Use proxy-libintl subproject when needed and available
Nirbheek Chauhan [Fri, 6 Jul 2018 18:50:41 +0000 (00:20 +0530)]
meson: Use proxy-libintl subproject when needed and available

Such as on Windows with MSVC.

7 years agomeson: Add a fallback for the harfbuzz dependency
Nirbheek Chauhan [Fri, 6 Jul 2018 18:49:57 +0000 (00:19 +0530)]
meson: Add a fallback for the harfbuzz dependency

This meson port is not upstream yet, so a wrap file is not included.
Upstream has expressed interest but the port hasn't been tested on all
platforms yet. Will be added when it gets upstreamed.

Link to WIP port: https://github.com/centricular/harfbuzz

7 years agoemojichooser: Pass chooser to add_emoji
Timm Bäder [Thu, 11 Oct 2018 10:27:17 +0000 (12:27 +0200)]
emojichooser: Pass chooser to add_emoji

7 years agowidget: Stop adding a legacy event controller
Timm Bäder [Mon, 8 Oct 2018 16:05:56 +0000 (18:05 +0200)]
widget: Stop adding a legacy event controller

The only event signal left is ::event and everything needing that
connects to it directly.

7 years agogl renderer: Save some matrix multiplications
Timm Bäder [Sat, 6 Oct 2018 07:23:26 +0000 (09:23 +0200)]
gl renderer: Save some matrix multiplications

We do this for every single node, which is a little costly, especially
since the common case for the modelview matrix these days is a simple
translation. So, check whether the new modelview matrix is only a
translation matrix and if so, don't do a full matrix multiplication per
node.

7 years agospinbutton: Don't use gfloat in a code sample
Timm Bäder [Wed, 26 Sep 2018 07:36:31 +0000 (09:36 +0200)]
spinbutton: Don't use gfloat in a code sample

7 years agoMerge branch 'file-sealing' into 'master'
Timm Bäder [Wed, 10 Oct 2018 11:12:03 +0000 (11:12 +0000)]
Merge branch 'file-sealing' into 'master'

gdk: seal in-memory files when possible

See merge request GNOME/gtk!353

7 years agoMerge branch 'gtkbuilder-tag-end-wrong-type' into 'master'
Timm Bäder [Wed, 10 Oct 2018 11:09:25 +0000 (11:09 +0000)]
Merge branch 'gtkbuilder-tag-end-wrong-type' into 'master'

GtkBuildable: Fix the type of the user_data in GtkBuildable.custom_tag_end

See merge request GNOME/gtk!378

7 years agogtkimcontextime.c: Fix Korean input
Chun-wei Fan [Tue, 9 Oct 2018 09:06:39 +0000 (17:06 +0800)]
gtkimcontextime.c: Fix Korean input

Commit 64a489ad inadvertently introduced a regression that broke Korean
text input because the changes there resulted that only the last input
string that we have from ImmGetCompositionStringW() for each time the
commit signal is emitted is kept, and also as a result the final Korean
character that is input by hitting space is also lost as a result, as we
didn't check for whether we are done with preediting.

Fix these issues by doing the following when we receive the
WM_IME_COMPOSITION message with GCS_RESULTSTR from Windows:
-Do not emit the commit signal during WM_IME_ENDCOMPOSITION, and...
-Emit the commit signal anyways, as we did before c255ba68, however...
-We still save up the string to commit, because we need to re-compute
 the cursor position when we do ->get_preedit_string(), which needs to
 take the GCS_RESULTSTR string we get from WM_IME_COMPOSITION into
 account as well, so that we avoid getting the Pango criticals that
 occur during Chinese (and most likely Japanese) input as the cursor
 position is out-of-range.

Fixes issue #1350.

7 years agotestsuite/gtk/filterlistmodel.c: Avoid GCCism
Chun-wei Fan [Tue, 9 Oct 2018 08:24:15 +0000 (16:24 +0800)]
testsuite/gtk/filterlistmodel.c: Avoid GCCism

Pointer arithmetic on gpointers (void *) is a GCCism, so avoid that by
being more explicit with things.

7 years agotestsuite/gtk/[flatten|sort]listmodel.c: Avoid VLA usage
Chun-wei Fan [Tue, 9 Oct 2018 08:22:28 +0000 (16:22 +0800)]
testsuite/gtk/[flatten|sort]listmodel.c: Avoid VLA usage

Visual Studio is unlikely to support VLAs at any point, so avoid using
them and use g_newa() instead.

7 years agoGtkBuildable: Fix the type of the user_data in GtkBuildable.custom_tag_end
Robert Ancell [Sun, 7 Oct 2018 22:34:43 +0000 (11:34 +1300)]
GtkBuildable: Fix the type of the user_data in GtkBuildable.custom_tag_end

The previous type was a pointer to a pointer, which seems to be a copy-paste
error from GtkBuildable.custom_tag_start which is an out parameter. It was
always cast in use so this is an API break, but not an ABI one.

7 years agoMerge branch 'master' into 'master'
Daniel Boles [Sun, 7 Oct 2018 17:28:31 +0000 (17:28 +0000)]
Merge branch 'master' into 'master'

gtkstack: fix null pointer dereference

See merge request GNOME/gtk!361

7 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 7 Oct 2018 13:57:01 +0000 (16:57 +0300)]
Updated Lithuanian translation

7 years agoMerge branch 'win32-runtime-immodule-swap-gtk4' into 'master'
LRN [Sun, 7 Oct 2018 09:05:16 +0000 (09:05 +0000)]
Merge branch 'win32-runtime-immodule-swap-gtk4' into 'master'

GDK W32: Support switching IM contexts at runtime (GTK4)

See merge request GNOME/gtk!372

7 years agodocs: Update GtkSliceListModel
Benjamin Otte [Sun, 7 Oct 2018 02:23:40 +0000 (02:23 +0000)]
docs: Update GtkSliceListModel

7 years agoslicelistmodel: Fix typos in docs
Mohammed Sadiq [Sun, 7 Oct 2018 02:16:58 +0000 (07:46 +0530)]
slicelistmodel: Fix typos in docs

7 years agoGDK W32: Support switching IM contexts at runtime
Руслан Ижбулатов [Tue, 2 Oct 2018 09:34:22 +0000 (09:34 +0000)]
GDK W32: Support switching IM contexts at runtime

This leverages the normal input context switching mechanism in GTK
by making it think that the gtk-im-module setting changed.
The backend returns gtk-im-module value as "ime" if W32
IME API says that an IME is in use. Otherwise it returns
and empty string - this still triggers an input context
switching code, which, not being able to create the desired context
(which is and empty string), falls back to looking at current
keyboard layout (currently that code is still a FIXME).

Paired with the code that signals gtk-im-module change on keyboard layout
switches, this is sufficient to make GTK capable of switching to
the appropriate IM context at runtime. At least, the kinds of context
that specify languages for which they are used automatically by default
(once locale matching is implemented), and the IME context.

Loading other kinds of IM context might still work via specifying
the gtk-im-module setting in gtk ini file, but doing so will likely
make GTK incapable of using the IME context that is used
for Korean, Chinese and Japanese (and some other languages).

Until someone figures out a way to actually change gtk-im-module
setting on Windows at runtime with meaningful values, the behaviour
introduced by this commit seems like a sufficient workaround.

7 years agoinspector: Highlight CSS node on selection
Benjamin Otte [Fri, 5 Oct 2018 20:07:07 +0000 (22:07 +0200)]
inspector: Highlight CSS node on selection

Fixes #1383

7 years agodocs: Put subsection into right section
Benjamin Otte [Thu, 20 Sep 2018 14:06:06 +0000 (16:06 +0200)]
docs: Put subsection into right section

The widget observer APIs belong into the widget docs, not the window
docs. Oops.

7 years agovideo: Add header include guard
Benjamin Otte [Fri, 21 Sep 2018 02:34:16 +0000 (04:34 +0200)]
video: Add header include guard

7 years agoAdwaita: fix devel styling for sidebar apps
Jakub Steiner [Thu, 4 Oct 2018 18:36:44 +0000 (20:36 +0200)]
Adwaita: fix devel styling for sidebar apps

- don't put the gradient/cogged wheel on apps that have a split headerbar
  due to having a sidebar

7 years agoUpdate Esperanto translation
Kristjan SCHMIDT [Sun, 30 Sep 2018 10:24:25 +0000 (10:24 +0000)]
Update Esperanto translation

7 years agogdk: seal in-memory files when possible
emersion [Sun, 23 Sep 2018 18:56:18 +0000 (20:56 +0200)]
gdk: seal in-memory files when possible

This can be used by compositors to mmap memory without having to
handle SIGBUS.

7 years agogtkstack: fix null pointer dereference
Hugo Lefeuvre [Wed, 26 Sep 2018 20:59:59 +0000 (16:59 -0400)]
gtkstack: fix null pointer dereference

The gtk_stack_snapshot_slide() function dereferences the
last_visible_child pointer without proper != NULL ckeck. This might
result in NULL pointer dereference and crash if last_visible_child is
invalid.

Add a != NULL check before dereferencing the pointer.

7 years agoMerge branch 'wip/sadiq/fixes' into 'master'
Matthias Clasen [Wed, 26 Sep 2018 18:28:23 +0000 (18:28 +0000)]
Merge branch 'wip/sadiq/fixes' into 'master'

docs: Fix inclusion of source files in tutorial

See merge request GNOME/gtk!341

7 years agoMerge branch 'wip/jimmac/nightly-headerbar' into 'master'
Matthias Clasen [Wed, 26 Sep 2018 16:11:43 +0000 (16:11 +0000)]
Merge branch 'wip/jimmac/nightly-headerbar' into 'master'

Adwaita: tone down the 'devel' styling

See merge request GNOME/gtk!357

7 years agoAdwaita: tone down the 'devel' styling
Jakub Steiner [Wed, 26 Sep 2018 13:50:58 +0000 (15:50 +0200)]
Adwaita: tone down the 'devel' styling

The selected bg was too prominent and intefered with button styling.

7 years agoMerge branch 'wip/arnaudb/fix-dashed-border-4' into 'master'
Timm Bäder [Tue, 25 Sep 2018 07:12:58 +0000 (07:12 +0000)]
Merge branch 'wip/arnaudb/fix-dashed-border-4' into 'master'

Make dashed border-style work correctly

See merge request GNOME/gtk!355

7 years agoUpdate expected node files
Timm Bäder [Mon, 24 Sep 2018 19:05:07 +0000 (21:05 +0200)]
Update expected node files

We don't technically hide the arrow nodes anymore.

7 years agoMake dashed border-style work correctly
Arnaud B [Fri, 21 Sep 2018 12:25:23 +0000 (12:25 +0000)]
Make dashed border-style work correctly

There’s a short-path done for focus rectangles, but it can be taken in other conditions, and then fail occasionally to render a dashed line if the border-width is too big.

7 years agoUpdate Polish translation
Piotr Drąg [Sun, 23 Sep 2018 16:27:30 +0000 (18:27 +0200)]
Update Polish translation

7 years agoscalebutton: Remove unused define
Timm Bäder [Sun, 23 Sep 2018 16:01:59 +0000 (18:01 +0200)]
scalebutton: Remove unused define

7 years agobutton: Remove key_controller member
Timm Bäder [Sun, 23 Sep 2018 15:59:37 +0000 (17:59 +0200)]
button: Remove key_controller member

Unneeded now.

7 years agoassistant: Remove some unused defines
Timm Bäder [Sun, 23 Sep 2018 15:33:48 +0000 (17:33 +0200)]
assistant: Remove some unused defines

7 years agomenu: Remove useless if statement
Timm Bäder [Tue, 18 Sep 2018 14:29:10 +0000 (16:29 +0200)]
menu: Remove useless if statement

7 years agomenu: Show scroll arrows if necessary
Timm Bäder [Mon, 17 Sep 2018 09:19:57 +0000 (11:19 +0200)]
menu: Show scroll arrows if necessary

7 years agomenu: Remove arrow visibility flags
Timm Bäder [Mon, 17 Sep 2018 09:07:41 +0000 (11:07 +0200)]
menu: Remove arrow visibility flags

7 years agoGtkApplication: Fix CRITICAL on shutdown when register_session=FALSE
Jan Alexander Steffens (heftig) [Wed, 5 Sep 2018 19:46:28 +0000 (21:46 +0200)]
GtkApplication: Fix CRITICAL on shutdown when register_session=FALSE

Close https://gitlab.gnome.org/GNOME/gtk/issues/1323#note_327705

7 years agoMerge branch 'master' into 'master'
Daniel Boles [Sat, 22 Sep 2018 16:52:49 +0000 (16:52 +0000)]
Merge branch 'master' into 'master'

flattenlistmodel: Fix uninitialized variable warning

See merge request GNOME/gtk!347

7 years agoUse Unicode apostrophes in new strings
Piotr Drąg [Thu, 20 Sep 2018 17:01:14 +0000 (19:01 +0200)]
Use Unicode apostrophes in new strings

See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772371

7 years agoflattenlistmodel: Fix uninitialized variable warning
Yi-Soo An [Thu, 20 Sep 2018 03:45:33 +0000 (12:45 +0900)]
flattenlistmodel: Fix uninitialized variable warning

Variable, added, would be a garbage value if model is NULL and
the following code, if condition, use the uninitialized variable.
A side effect could be occurred by that.

To avoid, the variable is initialized to zero.

7 years agoMerge branch 'master' into 'master'
Matthias Clasen [Wed, 19 Sep 2018 13:46:50 +0000 (13:46 +0000)]
Merge branch 'master' into 'master'

Remove some duplication in testfilechooserbutton

See merge request GNOME/gtk!342

7 years agoMerge branch 'installed-tests' into 'master'
Matthias Clasen [Wed, 19 Sep 2018 11:59:16 +0000 (11:59 +0000)]
Merge branch 'installed-tests' into 'master'

Get GTK+ 4 installed-tests closer to working

See merge request GNOME/gtk!348

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Wed, 19 Sep 2018 11:13:18 +0000 (11:13 +0000)]
Update Turkish translation

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Wed, 19 Sep 2018 11:05:05 +0000 (11:05 +0000)]
Update Turkish translation

7 years agoUpdate Turkish translation
Emin Tufan Çetin [Wed, 19 Sep 2018 10:56:13 +0000 (10:56 +0000)]
Update Turkish translation

7 years agotestsuite: Install accessibility-dump executable alongside tests
Simon McVittie [Fri, 14 Sep 2018 12:15:09 +0000 (13:15 +0100)]
testsuite: Install accessibility-dump executable alongside tests

The installed-tests want to run this.

Signed-off-by: Simon McVittie <smcv@debian.org>
7 years agotestsuite: Fix installed-test metadata for autotestkeywords
Simon McVittie [Wed, 19 Sep 2018 07:09:18 +0000 (08:09 +0100)]
testsuite: Fix installed-test metadata for autotestkeywords

The executable is called autotestkeywords, so we shouldn't try to run
an executable named keywords. Also rename the metadata file to match.

Signed-off-by: Simon McVittie <smcv@debian.org>
7 years agoreftests: Fix path to installed-tests in .test metadata
Simon McVittie [Fri, 14 Sep 2018 08:22:15 +0000 (09:22 +0100)]
reftests: Fix path to installed-tests in .test metadata

The installed-tests are now namespaced as gtk-4.0 to avoid colliding
with GTK+ 3, but these files weren't updated.

Signed-off-by: Simon McVittie <smcv@debian.org>
7 years agoinspector: Handle case where there's no default application
Benjamin Otte [Wed, 19 Sep 2018 02:28:09 +0000 (04:28 +0200)]
inspector: Handle case where there's no default application

7 years agocssrbtree: Fix a crasher
Benjamin Otte [Wed, 19 Sep 2018 02:26:37 +0000 (04:26 +0200)]
cssrbtree: Fix a crasher

After removing elements, there were a few cases where the tree wasn't
properly balanced which could further down violate assumptions about the
layout.

Attached is the original testcase that triggered it. I didn't bother
simplifying it.

7 years agoMerge branch 'win32-scroll-both-gtk4' into 'master'
LRN [Tue, 18 Sep 2018 16:43:37 +0000 (16:43 +0000)]
Merge branch 'win32-scroll-both-gtk4' into 'master'

GDK W32: send both smooth and discrete scrolling events (GTK4)

See merge request GNOME/gtk!337

7 years agoMerge branch 'revealer-support-min-size-master' into 'master'
Benjamin Otte [Tue, 18 Sep 2018 15:19:12 +0000 (15:19 +0000)]
Merge branch 'revealer-support-min-size-master' into 'master'

gtkrevealer: support minimum size of child

Closes #635

See merge request GNOME/gtk!317

7 years agoGDK W32: fix direction of horizontal smooth scrolling events
Eduard Braun [Thu, 13 Sep 2018 14:17:51 +0000 (16:17 +0200)]
GDK W32: fix direction of horizontal smooth scrolling events

Commit 359df028be7b1dae76a1abb9bad8a3b86a648765 changed the
code to send GDK_SCROLL_SMOOTH with deltas instead of
GDK_SCROLL_(UP|DOWN|LEFT|RIGHT).

Windows defines deltas inversed for vertical direction
(positive values mean the wheel was turned forward)
but not for horizontal direction
(positive values mean the wheel was turned towards the right).

This commit fixes behavior as both axes were inverted previously.

7 years agoGDK W32: send both smooth and discrete scrolling events
Руслан Ижбулатов [Wed, 12 Sep 2018 06:55:49 +0000 (06:55 +0000)]
GDK W32: send both smooth and discrete scrolling events

Commit d64467b33475bf8358f66bec9450101f37c05e9c changed the
code to send GDK_SCROLL_SMOOTH with deltas instead of
GDK_SCROLL_(UP|DOWN|LEFT|RIGHT). Change it again, to send
both the GDK_SCROLL_SMOOTH and the GDK_SCROLL_(UP|DOWN|LEFT|RIGHT)
event separately (with the discrete event marked as emulated),
as this is what other backends (such as wayland) do.

7 years agorevealer: Support minimum size of child
Carlos Soriano [Tue, 18 Sep 2018 08:55:02 +0000 (10:55 +0200)]
revealer: Support minimum size of child

Up until now when allocating the child it only used the natural size
while the measuring also used the minimum size, resulting in a clipped
child when animating if the child had different minimum size and
natural size. This was an obvious case when using labels that had
ellipsization.

This commit gives full allocation to the child by inverting the size
the revealer reduces from its animation progress.

Code done by Benjamin Otte.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/635
7 years agoci/docker: add lcov so we can create coverage reports
Christoph Reiter [Tue, 18 Sep 2018 07:55:50 +0000 (09:55 +0200)]
ci/docker: add lcov so we can create coverage reports

This was requested on IRC; the docker image in the registry is updated already.

7 years agotreelistmodel: Improve naming a bit
Benjamin Otte [Tue, 18 Sep 2018 05:50:33 +0000 (07:50 +0200)]
treelistmodel: Improve naming a bit

The complexity with model items vs row items is really confusing. Add to
that treelistmodel position vs child model position vs parent position,
and you're so confused, even the best naming can't help.

And once you're there, consider passthrough vs non-passthrough...

7 years agolistmodels: Clarify documentation for function prototypes
Benjamin Otte [Tue, 18 Sep 2018 05:27:48 +0000 (07:27 +0200)]
listmodels: Clarify documentation for function prototypes

Fixes #1341

7 years agoRevert "listlistmodel: Fix documentation comment"
Mohammed Sadiq [Tue, 18 Sep 2018 04:31:12 +0000 (10:01 +0530)]
Revert "listlistmodel: Fix documentation comment"

This reverts commit 03679d434262be5a73e25668513a6a6597fd90ea.

listlistmodel is private

7 years agolistlistmodel: Fix documentation comment
Mohammed Sadiq [Tue, 18 Sep 2018 04:25:43 +0000 (09:55 +0530)]
listlistmodel: Fix documentation comment

7 years agotree-list-model: Return the correct item type
Georges Basile Stavracas Neto [Tue, 18 Sep 2018 03:51:57 +0000 (00:51 -0300)]
tree-list-model: Return the correct item type

When passthrough is enabled, it should return the GType
of the child GListModels; when disabled, it should be
GTK_TYPE_TREE_LIST_ROW.

The conditions are inverted however, causing a few
warnings to trigger.

Fix that by returning the correct GType.

7 years agoMerge branch 'wip/sadiq/model-fixes' into 'master'
Mohammed Sadiq [Tue, 18 Sep 2018 02:54:30 +0000 (02:54 +0000)]
Merge branch 'wip/sadiq/model-fixes' into 'master'

treelistmodel: Fix memory leak

See merge request GNOME/gtk!344

7 years agotreelistmodel: Fix memory leak
Mohammed Sadiq [Tue, 18 Sep 2018 01:58:56 +0000 (07:28 +0530)]
treelistmodel: Fix memory leak

gtk_tree_list_model_init_node() increases the reference count
of the model passed. Let's not do that, and let it take the
model passed.

7 years agoMerge branch 'wip/sadiq/model-fixes' into 'master'
Mohammed Sadiq [Tue, 18 Sep 2018 02:03:58 +0000 (02:03 +0000)]
Merge branch 'wip/sadiq/model-fixes' into 'master'

treelistmodel: Fix signal emission on row destroy

See merge request GNOME/gtk!343

7 years agotreelistmodel: Fix signal emission on row destroy
Mohammed Sadiq [Tue, 18 Sep 2018 01:41:27 +0000 (07:11 +0530)]
treelistmodel: Fix signal emission on row destroy

7 years agoRemove some duplication in testfilechooserbutton
Manu Cornet [Mon, 17 Sep 2018 12:27:46 +0000 (12:27 +0000)]
Remove some duplication in testfilechooserbutton

Most of the code creating the two types of dialogs (open file,
choose folder) is the same. This refactors the common code into a
helper method. This also makes it easier to add other chooser types
for this test (e.g. save file).

7 years agogtk: Fix some g-i annotations warnings
Rico Tzschichholz [Mon, 17 Sep 2018 11:00:36 +0000 (13:00 +0200)]
gtk: Fix some g-i annotations warnings

7 years agoMerge branch 'toolbar-expand' into 'master'
Robert Ancell [Mon, 17 Sep 2018 08:59:19 +0000 (08:59 +0000)]
Merge branch 'toolbar-expand' into 'master'

toolbar: Use hexpand/vexpand Gtk+ properties

See merge request GNOME/gtk!334

7 years agotoolbar: Use hexpand/vexpand Gtk+ properties
Robert Ancell [Mon, 10 Sep 2018 23:00:01 +0000 (11:00 +1200)]
toolbar: Use hexpand/vexpand Gtk+ properties

7 years agodocs: Fix inclusion of source files in tutorial
Mohammed Sadiq [Mon, 17 Sep 2018 08:07:43 +0000 (13:37 +0530)]
docs: Fix inclusion of source files in tutorial

7 years agotree list model: Add docs
Matthias Clasen [Mon, 17 Sep 2018 03:06:19 +0000 (23:06 -0400)]
tree list model: Add docs

7 years agoMinor doc fix
Matthias Clasen [Mon, 17 Sep 2018 02:35:26 +0000 (22:35 -0400)]
Minor doc fix

Clarify some wording.

7 years agotestsuite: Disable some tests for older glib
Benjamin Otte [Mon, 17 Sep 2018 02:29:40 +0000 (04:29 +0200)]
testsuite: Disable some tests for older glib

7 years agotestsuite: Add tests for GtkSortListModel
Benjamin Otte [Mon, 17 Sep 2018 01:56:41 +0000 (03:56 +0200)]
testsuite: Add tests for GtkSortListModel

7 years agosortlistmodel: Actually insert unsorted items at the wrong place
Benjamin Otte [Mon, 17 Sep 2018 01:50:56 +0000 (03:50 +0200)]
sortlistmodel: Actually insert unsorted items at the wrong place

We were adding items in reverse order, oops.

7 years agoUpdate POTFILES.in
Piotr Drąg [Sun, 16 Sep 2018 19:02:31 +0000 (21:02 +0200)]
Update POTFILES.in

7 years agodocs: Add missing TreeListModel docs
Benjamin Otte [Sun, 16 Sep 2018 17:38:25 +0000 (19:38 +0200)]
docs: Add missing TreeListModel docs

7 years agoMerge branch 'wip/sadiq/fixes' into 'master'
Matthias Clasen [Sun, 16 Sep 2018 17:06:29 +0000 (17:06 +0000)]
Merge branch 'wip/sadiq/fixes' into 'master'

gdkselectioninputstream-x11: Fix memory leak

See merge request GNOME/gtk!340

7 years agotesttreelistmodel: Display the file icon, because why not
Benjamin Otte [Sun, 16 Sep 2018 08:31:16 +0000 (10:31 +0200)]
testtreelistmodel: Display the file icon, because why not

7 years agoinspector: Update the controllers list to show parent controllers
Benjamin Otte [Tue, 11 Sep 2018 02:41:52 +0000 (04:41 +0200)]
inspector: Update the controllers list to show parent controllers

Now we show all the controllers that are relevant when widget gets sent
events.

7 years agotesttreelistmodel: Make the statusbar display more info
Benjamin Otte [Sat, 15 Sep 2018 13:12:35 +0000 (15:12 +0200)]
testtreelistmodel: Make the statusbar display more info

Now display how many items were filtered (if any) and how many
directories remain to be sanned (if any).

7 years agotesttreelistmodel: Sort files by name
Benjamin Otte [Fri, 14 Sep 2018 02:54:36 +0000 (04:54 +0200)]
testtreelistmodel: Sort files by name

7 years agoGtkSortListModel: Add
Benjamin Otte [Fri, 14 Sep 2018 02:34:40 +0000 (04:34 +0200)]
GtkSortListModel: Add

7 years agotesttreelistmodel: Add search
Benjamin Otte [Thu, 13 Sep 2018 00:33:32 +0000 (02:33 +0200)]
testtreelistmodel: Add search

Add a simple search that does a case insensitive substring search of the
file paths.

7 years agotesttreelistmodel: Make the directory loading async
Benjamin Otte [Wed, 12 Sep 2018 03:04:17 +0000 (05:04 +0200)]
testtreelistmodel: Make the directory loading async

This is way more complicated than it should be, because it requires
manually limiting the number of open file enumerators.

On the other hand, it exhaustively tests the items-changed emission of
all involved listmodels because those signals come in pretty much
randomly.

It's also 50% slower than the sync version, with the caeat that the sync
version only shows the UI after it's done loading, while this version
shows it right away.

7 years agotesttreelistmodel: Add a hack to handle LONG lists
Benjamin Otte [Wed, 12 Sep 2018 01:10:50 +0000 (03:10 +0200)]
testtreelistmodel: Add a hack to handle LONG lists

... and make the lists long by autoexpanding the tree.